package com.hulk.rpc.transport.client.future;

import com.hulk.rpc.protocol.Request;
import com.hulk.rpc.protocol.Response;
import lombok.Data;

import java.util.concurrent.CompletableFuture;

/**
 * @author xuxukang
 */
@Data
public class RequestWithFuture {
  private Request request;
  private CompletableFuture<Response> future;
  private long expireTime;

  public RequestWithFuture(Request request, CompletableFuture<Response> future, long expireTime) {
    this.request = request;
    this.future = future;
    this.expireTime = expireTime;
  }

}
